/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.sheet.table.row;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTable;

/**
 *
 * @author Overmind
 */
public class CornerAdapter
    implements ActionListener
{
    private JTable table;
    
    public CornerAdapter(JTable table)
    {
	this.table = table;
    }

    @Override
    public void actionPerformed(ActionEvent ae)
    {
	table.setRowSelectionInterval(0, table.getRowCount() - 1);
	table.setColumnSelectionInterval(0, table.getColumnCount() - 1);
    }
    
    
}
